package com.lsb.blog.service;

import com.lsb.blog.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lsb.blog.response.Result;
import com.lsb.blog.vo.UserVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liusibo
 * @since 2021-08-01
 */
public interface SysUserService extends IService<SysUser> {
    //根据用户id查询User
    SysUser findSysUserById(Long id);
    //根据用户名密码查询User
    SysUser findUser(String account, String pwd);
    //根据token查询loginUser数据
    Result getUserInfoByToken(String token);
    //查询account数量
    int findAccountNum(String account);
    //根据token查询sysUser数据
    SysUser getSysUserByToken(String token);
    //根据id查询UserVo
    UserVo findUserVoById(Long id);
}
